package com.hangjiang.gulidear.dao.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.hangjiang.gulidear.dao.CommentDao;
import com.hangjiang.gulidear.model.Comment;
import com.hangjiang.gulidear.model.User;
import com.hangjiang.gulidear.model.UserRole;

@Repository("commentDao")
public class CommentDaoImpl extends BaseDaoImpl<Comment> implements CommentDao {

	@Override
	public List<Comment> findCommentsByProjectId(String projectId) {
	String hql ="from Comment c where c.project.projectId = ?";
	List<Comment> comments = findByHQL(hql, projectId);
		return comments;
	}

}
